﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace PermDoc.DB
{

    public enum DocState { Неопределен = 0, Утвержден = 1, Черновик = 2, Ожидает_утверждения = 3 }

    public struct DocItem
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public DocState State { get; set; }
        public DateTime? Created { get; set; }
        public DateTime? Modified { get; set; }
        public string Author { get; set; }
        public string Editor { get; set; }
        public Shop Shop { get; set; }
        public Kontragent Kontragent { get; set; }
        public DateTime? DocDate { get; set; }
        public string DocNum { get; set; }
        public void Copy(DocItem src)
        {
            ID = src.ID;
            Title = src.Title;
            State = src.State;
            Created = src.Created;
            Modified = src.Modified;
            Author = src.Author;
            Editor = src.Editor;
            Shop = src.Shop;
            Kontragent = src.Kontragent;
            DocDate = src.DocDate;
            DocNum = src.DocNum;
        }
    }

}
